<div class="alert alert-success-light">
	<i class="fa fa-warning"></i> 温馨提示：如不搭建【移动客户端】则不用配置此页，如要搭建请完善此页，点击【更新】后系统将更新客户端配置文件，更新完请在【客户端配置】重新生成源码导入HBuilder X
</div>
<div class="panel panel-default panel-intro">
	<div class="panel-heading">
		<div class="panel-lead"><em>H5客户端</em>用于H5客户端参数配置和一键本地打包H5客户端</div>
	</div>
	<div class="panel-body">
		<div id="myTabContent" class="tab-content">
			<div class="tab-pane fade active in" id="ini">
				<div class="widget-body no-padding">
					<form id="ini-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('wanlshop.client/edit')}">
					    {:token()}	
						<table class="table table-striped">
							<thead>
								<tr>
									<th width="15%">配置项</th>
									<th width="85%">参数</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>域名</td>
									<td>
										<div class="row">
											<div class="col-sm-8 col-xs-12">
												{:Form::text('row[h5][domain]', $wanlshop.h5.domain, ['data-rule'=>'required','data-tip'=>'请填写H5站点域名','placeholder'=>'绑定子域名请使用https：如没有子域名请填写 根目录域名/基础路径'])}
											</div>
											<div class="col-sm-4"></div>
										</div>
									</td>
								</tr>
								<tr>
									<td>网站标题</td>
									<td>
										<div class="row">
											<div class="col-sm-8 col-xs-12">
												{:Form::text('row[h5][title]', $wanlshop.h5.title, ['data-rule'=>'required','data-tip'=>'请填写H5网站标题','placeholder'=>'请填写H5网站标题'])}
											</div>
											<div class="col-sm-4"></div>
										</div>
									</td>
								</tr>
								<tr>
									<td>路由模式</td>
									<td>
										<div class="row">
											<div class="col-sm-8 col-xs-12">
												 {:Form::select('row[h5][router_mode]', ['history'=>'history', 'hash'=>'hash'], $wanlshop.h5.router_mode, ['data-rule'=>'required'])}
											</div>
											<div class="col-sm-4"></div>
										</div>
									</td>
								</tr>
								<tr>
									<td>运行基础路径</td>
									<td>
										<div class="row">
											<div class="col-sm-8 col-xs-12">
												{:Form::text('row[h5][router_base]', $wanlshop.h5.router_base, ['data-rule'=>'required','data-tip'=>'请填写运行基础路径','placeholder'=>'例：/h5/，代表在域名的/h5目录下部署运行'])}
											</div>
											<div class="col-sm-4"></div>
										</div>
									</td>
								</tr>
								<tr>
									<td>开启Https协议</td>
									<td>
										<div class="row">
											<div class="col-sm-8 col-xs-12">
												{:Form::switcher('row[h5][https]', $wanlshop.h5.https, ['color'=>'success', 'yes'=>'Y', 'no'=>'N'])}
											</div>
											<div class="col-sm-4"></div>
										</div>
									</td>
								</tr>
								<tr>
									<td>腾讯地图key</td>
									<td>
										<div class="row">
											<div class="col-sm-8 col-xs-12">
												{:Form::text('row[h5][qqmap_key]', $wanlshop.h5.qqmap_key, ['data-rule'=>'required','data-tip'=>'请填写h5腾讯地图key','placeholder'=>'H5平台腾讯定位地图应用KEY'])}
											</div>
											<div class="col-sm-4"></div>
										</div>
									</td>
								</tr>
								
							</tbody>
							<tfoot>
								<tr>
									<td></td>
									<td>
										<button type="submit" class="btn btn-success btn-embossed">{:__('更新')}</button>
										<button type="reset" class="btn btn-default btn-embossed">重置</button>
									</td>
									<td></td>
								</tr>
							</tfoot>
						</table>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<style type="text/css">
	@media (max-width: 375px) {
		.edit-form tr td input {
			width: 100%;
		}

		.edit-form tr th:first-child,
		.edit-form tr td:first-child {
			width: 20%;
		}

		.edit-form tr th:nth-last-of-type(-n+2),
		.edit-form tr td:nth-last-of-type(-n+2) {
			display: none;
		}
	}

	.edit-form table>tbody>tr td a.btn-delcfg {
		visibility: hidden;
	}

	.edit-form table>tbody>tr:hover td a.btn-delcfg {
		visibility: visible;
	}
</style>
